package com.jialidun.jiaowusys;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@ServletComponentScan// 要想 servlet，filter起作用，必须加该注解
@MapperScan("com.jialidun.jiaowusys.mapper")// 扫描mapper xml映射文件路径
@EnableTransactionManagement// 启用声明式事务 字节写代码控制事务就叫做编程式事务 打注解或者基于配置文件的方式都属于声明式事务
public class JiaowuSysApplication {

    public static void main(String[] args) {
        SpringApplication.run(JiaowuSysApplication.class, args);
    }

}
